//用户接口
import axios from '../utils/utils'

//登录接口
export const login = params => axios.post('/users/checkLogin', params)

//添加账号
export const useradd = params => axios.post('/users/add', params)

//获取账号列表
export const acclist = params => axios.get('/users/list', { params })

//修改账号
export const editacc = params => axios.post('/users/edit', params)

//删除账号
export const accdel = params => axios.get('/users/del', { params })

//批量删除账号
export const alldel = params => axios.get('/users/batchdel', { params })

//验证旧密码
export const oldpwd = params => axios.get('/users/checkoldpwd', { params })

//修改密码
export const change = params => axios.post('/users/editpwd', params)

//获取个人中心信息
export const getacc = params => axios.get('/users/accountinfo', { params })

//TOKEN是否过期
export const token = params => axios.get('/users/checktoken', { params })


